home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************/
- /* GCK - The General Convenience Kit. Generally useful conveniece routines */
- /* for GIMP plug-in writers and users of the GDK/GTK libraries. */
- /* Copyright (C) 1996 Tom Bech */
- /* */
- /* This program is free software; you can redistribute it and/or modify */
- /* it under the terms of the GNU General Public License as published by */
- /* the Free Software Foundation; either version 2 of the License, or */
- /* (at your option) any later version. */
- /* */
- /* This program is distributed in the hope that it will be useful, */
- /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
- /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
- /* GNU General Public License for more details. */
- /* */
- /* You should have received a copy of the GNU General Public License */
- /* along with this program; if not, write to the Free Software */
- /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, */
- /* USA. */
- /***************************************************************************/
-
- #ifndef __GCKMATH_H__
- #define __GCKMATH_H__
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- double gck_deg_to_rad(double angle);
- double gck_rad_to_deg(double angle);
- void gck_mat_to_deg(double mat[4][4],double *a,double *b,double *c);
-
- int gck_clip_line(double *x1,double *y1,double *x2,double *y2,
- double minx,double miny,double maxx,double maxy);
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-